package io.renren.modules.app.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import io.renren.modules.app.entity.UserRegistrationEntity;
import io.renren.modules.app.entity.ViolationEntity;
import org.apache.ibatis.annotations.Select;
import org.mapstruct.Mapper;

@org.apache.ibatis.annotations.Mapper
public interface ViolationDao extends BaseMapper<ViolationEntity> {
    @Select("SELECT * FROM user_violation_records WHERE userID = #{userId}  order by time desc ")
    ViolationEntity findByuserId(int userId);


}

